package com.wt.springsamples.ext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

public class Dog implements Animal{

    public Dog(){
        System.out.println("Dog creating ...........");
    }

    public  void  walk(){
       System.out.println("Dog wal");
    }

    @Override
    public String getType() {
        return "Dog";
    }
}
